

<template>
  <tiny-virtual-scroll-box ref="vsBoxVm" v-bind="config" >
    <slot />
  </tiny-virtual-scroll-box>
</template>
<script setup>
import { TinyVirtualScrollBox } from '@opentiny/vue'
import {reactive} from "vue";
const props = defineProps({
  width: {type: [String, Number], default: 200},
  height: {type: [String, Number], default: 200},
})
const config = reactive({
  width: props.width,
  height: props.height,
  rowBuffer: 120,
  columnBuffer: 240,
  columns: [],
  columnSizes: [],
  rows: [],
  rowSizes: [],
  fixedColumns: [[], []], // 没有列冻结
  fixedRows: [[], []], // 没有行冻结
  spanConfig: [[]] // 没有合并
})
</script>
<style scoped lang="scss">

</style>